package net.discard.dao;

import net.discard.model.ActivityRegistration;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

public interface ActivityRegistrationRepository extends CrudRepository<ActivityRegistration, Long>, JpaSpecificationExecutor<ActivityRegistration> {

    Optional<ActivityRegistration> findByUserIdAndActivityId(long userId, long activityId);

}
